html, body {
    height: 100%;
}

body {
    margin: 0;
}

header {
    display: flex;
    flex-direction: row;
    height: 45px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    border-bottom: 1px solid #eee;
}

header > .back {
    width: 20px;
    height: 100%;
    background: url("icons/arrow-left.png") no-repeat center center/contain;
    margin-left: 8px;
}

header > .btn {
    width: 40px;
    height: 100%;
}

header > .text {
    flex-grow: 1;
}

header > div {
    text-align: center;
    line-height: 45px;
}

/*脚部样式*/
footer {
    height: 60px;
    display: flex;
    flex-direction: row;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid #eee;
}

footer > div {
    text-align: center;
    width: 80%;
}

footer > div > b {
    font-weight: normal;
    display: block;
    margin-top: 3px;
}

footer > .index > i {
    display: block;
    width: 30px;
    height: 30px;
    background: url("icons/home2.png") no-repeat center center/contain;
    margin: 0 auto;
}

footer > .category > i {
    display: block;
    width: 30px;
    height: 30px;
    background: url("icons/search3.png") no-repeat center center/contain;
    margin: 0 auto;
}

footer > .cart > i {
    display: block;
    width: 30px;
    height: 30px;
    background: url("icons/shop-cart1.png") no-repeat center center/contain;
    margin: 0 auto;
}

footer > .my > i {
    display: block;
    width: 30px;
    height: 30px;
    background: url("icons/people1.png") no-repeat center center/contain;
    margin: 0 auto;
}

.checkout {
    position: fixed;
    bottom: 61px;
    left: 0;
    right: 0;
    height: 45px;
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #fff;
}

.checkout > .btn {
    width: 100px;
    height: 36px;
    border-radius: 18px;
    background-color: pink;
    color: #fff;
    text-align: center;
    line-height: 36px;
}

.checkout > .check-all {
    flex-grow: 1;
    height: 100%;
}

.checkout > .check-all > * {
    vertical-align: middle;
}

.checkout > .check-all::after {
    display: inline-block;
    height: 100%;
    width: 0;
    content: "";
    vertical-align: middle;
}

.checkout > .check-all > i {
    font-style: normal;
    font-size: 20px;
    display: inline-block;
}

.checkout > .check-all > span:last-child {
    color: #999;
}

.checkout > .check-all > span > i {
    font-style: normal;
    color: pink;
    font-weight: bold;
}

.checkout > .check-all > b {
    display: inline-block;
    color: #999;
    font-size: 18px;
    font-weight: normal;
}

.my-radio {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    border: 1px solid #ccc;
}

.check-all > .my-radio {
    margin-left: 8px;
    margin-right: 6px;
}

.check-all > b {
    margin-left: 8px;
}

/*主体部分*/
.main {
    height: calc(100% - 150px);
    background-color: #eee;
    margin-top: 45px;
}

.main > .addr {
    height: 40px;
    display: flex;
    flex-direction: row;
    background-color: #fff;
}

.main > .addr > div:first-child {
    flex-grow: 1;
    line-height: 40px;
    margin-left: 15px;
}

.main > .addr > .arrow {
    width: 30px;
    height: 100%;
    background: url("icons/arrow-right.png") no-repeat center center/contain;
}

.main > .time {
    height: 40px;
    display: flex;
    flex-direction: row;
    background-color: #fff;
    margin-top: 6px;
}

.main > .time > .arrow {
    width: 30px;
    height: 100%;
    background: url("icons/arrow-right.png") no-repeat center center/contain;
}

.main > .time > .text {
    flex-grow: 1;
    text-align: right;
    line-height: 40px;
}


.main > .time > .text > a {
    text-decoration: none;
    color: deepskyblue;
}

.main > .time > div:first-child {
    line-height: 40px;
    margin-left: 15px;
}

.main > .list {
    background-color: #fff;
    margin-top: 6px;
}

.main > .list > .header {
    height: 40px;
    border-bottom: 1px solid #eee;
}

.main > .list > .header::after {
    display: inline-block;
    vertical-align: middle;
    width: 0;
    height: 100%;
    content: "";
}

.main > .list > .header > * {
    vertical-align: middle;
}

.main > .list > .header > i {
    font-style: normal;
}

.main > .list > .header > .my-radio {
    margin-left: 10px;
}

.cart-list {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.cart-list > li {
    height: 120px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.cart-list > li > .my-radio {
    margin-left: 10px;
    flex-shrink: 0;
}

.cart-list > li > .pic {
    width: 100px;
    height: 100px;
    background: url("goods/001.png") no-repeat center center/cover;
}

.cart-list .desc {
    font-size: 15px;
}

.cart-list .desc > div:nth-child(2) {
    color: pink;
    font-size: 16px;
    margin-top: 3px;
}

.cart-list .desc > div:last-child > i:first-child {
    width: 24px;
    height: 24px;
    display: inline-block;
    background: url("icons/subtract.png") no-repeat center center/contain;
    margin-right: 5px;
}


.cart-list .desc > div:last-child > i:last-child {
    width: 24px;
    height: 24px;
    display: inline-block;
    background: url("icons/add.png") no-repeat center center/contain;
    margin-left: 5px;
}

.cart-list .desc > div:last-child {
    margin-top: 5px;
}

.cart-list .desc > div:last-child > * {
    vertical-align: middle;
}

.list > .footer {
    border-top: 1px solid #eee;
    padding: 8px 0 8px 15px;
    font-size: 14px;
}

.list > .footer > i {
    font-style: normal;
}